<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .nav{
            width: 300px;
            height: 80px;
            margin: 50px auto;

        }

        ul{
            list-style: none;
            display: flex;
        
        }

        .nav li{
            width: 100px;
            height: 40px;
            line-height: 40px;
            transition: all 1s;

            transform-style: preserve-3d;
            /* transform: rotateX(-20deg) rotateY(30deg); */
            
            transform: scaleX(0.5);
            transform: scaleY(2);
            transform: scaleZ(3);
            transform: scale3d(0.5, 2, 3);

        }

        .nav li a{
            display: block;
            width: 100px;
            height: 40px;
            text-align: center;
            line-height: 40px;

            text-decoration: none;
            color: #fff;

        }

        .nav li a:first-child{
            background-color: green;
            transform:translateZ(20px);

        }
        .nav li a:last-child{
            background-color: orange;
            transform: rotateX(90deg) translateZ(60px);
        }
        .nav li:hover {
            transform: rotateX(-90deg);
        }
        

        



    </style>
</head>
<body>
    <div class="nav">
        <ul>
            <li>
                <a href="#">首页</a>
                <a href="#">Index</a>
            </li>
            <li>
                <a href="#">登录</a>
                <a href="#">Login</a>
            </li>
            <li>
                <a href="#">注册</a>
                <a href="#">Register</a>
            </li>
        </ul>
    </div>
</body>
</html>